import { request } from "@/plugins/axios";


export function list(data) {
    return request({
        url: '/backend/getpartslist',
        method: 'get',
        params: data
    })
}

export function cx(data) {
    return request({
        url: '/backend/cxparts',
        method: 'get',
        params: data
    })
}

export function getuserlistlength() {
    return request({
        url: '/backend/getpartslistlength',
        method: 'get',
    })
}

export function addpart(data) {
    return request({
        url: '/backend/addpart',
        method: 'get',
        params: data
    })
}


export function del(id) {
    return request({
        url:'/backend/deletePart/'+id,
        method: 'get',
    })
}



export function update(data) {
    return request({
        url:'/backend/updatepart',
        method: 'get',
        params: data
    })
}